package com.xinyues.gamemanager.dao.entity;


import java.util.ArrayList;
import java.util.List;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
/**
 * 
 * @ClassName: SystemRole 
 * @Description: 系统角色
 * @author: wang guang shuai
 * @date: 2019年12月6日 下午10:27:38
 */
@Document
public class GmRole {
    @Id
    private String id;//角色唯一id
    private String text;//角色名字
    private List<GmPermission> children = new ArrayList<>();//角色拥有的权限
    
    public String getId() {
        return id;
    }
    public void setId(String id) {
        this.id = id;
    }
    public String getText() {
        return text;
    }
    public void setText(String text) {
        this.text = text;
    }
    public List<GmPermission> getChildren() {
        return children;
    }
    public void setChildren(List<GmPermission> children) {
        this.children = children;
    }
  
   
    
    
}
